class CreateUserAbuseReports < ActiveRecord::Migration
  def self.up
    create_table :user_abuse_reports do |t|
      t.integer :user_id, :null => false
      t.integer :relation_id, :null => false
      t.string  :relation_type
      t.text    :content, :null => false
      t.integer :process_user_id
      t.integer :status, :limit => 1, :default => 0
      t.datetime  :process_time
      t.string    :ip,  :limit => 20
      t.integer   :flag, :limit => 4
      t.remarks   :text
    end
  end

  def self.down
    drop_table :user_abuse_reports
  end
end
